#pragma once
#include<iostream>
#include<vector>
#include "ldap_result.h"
using namespace std;

class Compare_Result :
	public LDAP_Result
{

	vector<Atribut<char *>> atribut_de_comparat;
	vector<Atribut<char *>> atribute_gasite;

	char *ldif_Result;

public:
	class Compare_Result_Exception
	{
		char *msg;
		int cod;
	public:
		Compare_Result_Exception(char *m,int c)
		{
			msg=new char[strlen(m)+1];
			if(msg==0)
				throw new exception();
			strcpy(msg,m);
			cod=c;
		}

		char *getMsg()const
		{
			return msg;
		}

		int getCode()const
		{
			return cod;
		}

		~Compare_Result_Exception()
		{
			delete[] msg;
		}
	};
	Compare_Result(char *ras,bool s,vector<Atribut<char*>> atrib_comp);

	void ldif_CompareResult();

	~Compare_Result(void);

	void afisareResult();

};

